﻿//Write a method that asks the user for his name and prints “Hello, <name>” (for example, “Hello, Pesho!”). 
//Write a program to test this method.

using System;

class PrintName
{
    static void Main()
    {
        //Calling the method
        Print();
    }

    //The method askas the user for his name and prints 'Hello, <username>'
    static void Print()
    {
        Console.Write("Please type your name: ");
        string name = Console.ReadLine();
        Console.WriteLine("Hello, {0}!", name);
    }
}
